<?php

class Application_Model_Placowki extends Zend_Db_Table {

    protected $_name = 'placowki';
    
    public function getById($id) {
        $rows = $this->fetchRow('id='.$id);
        return $rows;
    }
    
    public function getByName($name) {
        $rows = $this->fetchRow("title LIKE '$name'");
        return $rows;
    }
    
    public function getByParent($parent) {
        $rows = $this->fetchAll('parent='.$parent);
        return $rows;
    }
}
